//
//  SRDate.h
//  CarRental
//
//  Created by 孙锐 on 2017/6/13.
//  Copyright © 2017年 孙锐. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface SRDate : NSObject
+(NSString *)fromDateToNSString:(NSDate *)date AndFormatter:(NSString *)format;
+(NSInteger)timeSwitchTimestamp:(NSString *)formatTime andFormatter:(NSString *)format;
+(NSDate *)dateFromString:(NSString *)str AndFormatter:(NSString *)formatter;
+(NSDate *)getNowTime;
+(NSDate *)getDateWithDate:(NSDate *)needDate;
+(int)getTwoDaysBetween:(NSString *)str;
+(int)getTwoDaysBetweenWithDate:(NSDate *)date;
+(int)getTwoDaysBetween:(NSDate *)dateBegin andDate:(NSDate *)dateEnd;
+(int)getDayWithDate:(NSDate *)date;
+(NSString *)intToWeekDay:(int)day;
@end
